﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CPPEI.ETL.Domain;
using CPPEI.ETL.Domain.MessageAlert;
using CPPEI.ETL.Domain.Services;
using Quartz;

namespace CPPEI.ETL.WebApp
{
    public class TestSmsJob : IJob
    {
        public void Execute(IJobExecutionContext context)
        {
            CPPEI.ETL.Domain.MessageAlert.SMSAlert smshelper = new SMSAlert();
            try
            {
                smshelper.TestSms();
            }
            catch (Exception ex)
            {
                new LogService().Write(DEF.LogLevel.Error, string.Format("{0}：{1}", DateTime.Now, ex.Message), ex.StackTrace);
            }
        }
    }
}